package org.openspml.providers.one_c.api.connection;

import java.util.Collection;

import org.openspml.providers.one_c.api.users.UserRole;


import com.jacob.com.Dispatch;

/**
 * @author <A href="mailto:abashev at gmail dot com">Alexey Abashev</A>
 * @version $Id$
 */
public class Metadata extends Dispatch  {
	public Metadata(Dispatch dispatch) {
		super(dispatch);
	}
	
	public Collection<UserRole> getRoles() {
		return new UserRoleList(Dispatch.get(this, "Roles").toDispatch());
	}
}
